home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / tc_tsr10.zip / PRTSC.H < prev    next >
Text File  |  1991-06-18  |  3KB  |  100 lines

  1. /*-------------------------------------------------------------------*
  2.  | PRTSC.H                                                           |
  3.  |   Definitions of constants and macros that are used in TSRPRTSC.C |
  4.  |   and PRTSC.C                                                     |
  5.  *-------------------------------------------------------------------*/
  6.  
  7.  
  8. typedef unsigned char byte;
  9.  
  10. #define    TRUE      (1)
  11. #define    FALSE     (0)
  12.  
  13. #define  SAVE        (0)
  14. #define  RESTORE     (1)
  15.  
  16. #define  ON          (1)
  17. #define  OFF         (0)
  18.  
  19. #define  MIN_Y       (0)
  20. #define  MIN_X       (0)
  21.  
  22. #define  MAX_Y       (24)
  23. #define  MAX_X       (79)
  24.  
  25. #define   ALT        (8)
  26. #define   SCAN_CODE  (55) /* the '*' key on the right keypad */
  27.  
  28. #define   cli()     __cli__()
  29. #define   sti()     __sti__()
  30.  
  31. /*-----------------------------------------------------------------*
  32.  |                    Color definitions                            |
  33.  *-----------------------------------------------------------------*/
  34.  
  35. /*
  36.  * 0-Black     8-Gray
  37.  * 1-Blue      9-Bright Blue
  38.  * 2-Green     A-Bright Green
  39.  * 3-Cyan      B-Bright Cyan
  40.  * 4-Red       C-Bright Red
  41.  * 5-Magenta   D-Bright Magenta
  42.  * 6-Brown     E-Yellow
  43.  * 7-White     F-Bright White
  44.  */
  45.  
  46. #define    ON_COLOR       ( 0x1F )
  47. #define    OFF_COLOR      ( 0x07 )
  48. #define    BOX_COLOR      ( 0x40 )
  49. #define    CURSOR_COLOR   ( 0x70 )
  50. #define    CURSOR_COLOR1  ( 0x07 )
  51.  
  52. /*-----------------------------------------------------------------*
  53.  |                    Box drawing characters                       |
  54.  *-----------------------------------------------------------------*/
  55.  
  56. #define    H              ('─')
  57. #define    V              ('│')
  58. #define    C1             ('┌')
  59. #define    C2             ('┐')
  60. #define    C3             ('└')
  61. #define    C4             ('┘')
  62.  
  63. /*-----------------------------------------------------------------*
  64.  |                constants for keyboard entry                     |
  65.  *-----------------------------------------------------------------*/
  66.  
  67. #define    ENTER          (13)
  68. #define    SPACE          (32)
  69. #define    ESC            (27)
  70.  
  71. #define    F1             (0x3b00)
  72. #define    F2             (0x3c00)
  73. #define    F3             (0x3d00)
  74. #define    F4             (0x3e00)
  75. #define    F5             (0x3f00)
  76. #define    F6             (0x4000)
  77. #define    F7             (0x4100)
  78. #define    F8             (0x4200)
  79. #define    F9             (0x4300)
  80. #define    F10            (0x4400)
  81.  
  82. #define    UP             (0x4800)
  83. #define    DOWN           (0x5000)
  84. #define    RIGHT          (0x4D00)
  85. #define    LEFT           (0x4B00)
  86. #define    HOME           (0x4700)
  87. #define    END            (0x4f00)
  88. #define    PGUP           (0x4900)
  89. #define    PGDN           (0x5100)
  90. #define    CTRL_RIGHT     (0x7400)
  91. #define    CTRL_LEFT      (0x7300)
  92. #define    CTRL_HOME      (0x7700)
  93. #define    CTRL_END       (0x7500)
  94. #define    CTRL_PGUP      (0x8400)
  95. #define    CTRL_PGDN      (0x7600)
  96.  
  97. void initialize_video(void);
  98. void do_main_task(void);
  99. void main_task(void);
  100.